//
//  AudienceListCell.m
//  linktuIOS
//
//  Created by 章为 on 16/5/18.
//  Copyright © 2016年 张伟. All rights reserved.
//

#import "AudienceListCell.h"
//#import "ViewerInfoModel.h"
#import "UIButton+WebCache.h"
@interface AudienceListCell()

@property (weak, nonatomic) IBOutlet UIButton *iconButton;
@property (weak, nonatomic) IBOutlet UILabel *nameLabe;

@end

@implementation AudienceListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.iconButton.layer.cornerRadius = 20;
    self.iconButton.layer.masksToBounds = YES;
   
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

   
}
//-(void)setModel:(ViewerInfoModel *)model
//{
//    _model = model;
//    [self.iconButton sd_setBackgroundImageWithURL:[NSURL URLWithString:model.user_avatar] forState:UIControlStateNormal placeholderImage:[UIImage imageNamed:@"ease_default_avatar"]];
//    self.nameLabe.text = model.user_name;
//}
- (IBAction)DetailClick:(UIButton *)sender {
    if(self.detailBlock)
    {
        self.detailBlock(self);
    }
    
}

@end
